package com.itheima.homework.Three;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) throws ParseException {

        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
//        "1998年08月08日"
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日");
        Date data = simpleDateFormat.parse(s);
        System.out.println(data);


        Date d = new Date();
        long time1 = d.getTime();

        long time2 = data.getTime();

        long time = time1-time2;

        long a = (time/(24*60*60*1000));

        System.out.println(a);


    }
}
